<?php
session_start();
 // include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/public/func.php');
 //    $config=include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/public/config.php');
 //    $rew = sel($config,'`users`');

?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>个人博客</title>
<link href="/public/css/base.css" rel="stylesheet">
<link href="/public/css/index.css" rel="stylesheet">
<link href="/public/css/about.css" rel="stylesheet">
<link href="/public/css/share.css" rel="stylesheet">
<link href="/public/css/new.css" rel="stylesheet">
</head>
<body>
<header>
  <div id="logo"><a href="/"></a></div>
  <nav class="topnav" id="topnav">
  <a href="/home/index.php"><span>首页</span><span class="en">Protal</span></a>
  <a href="/home/share.php"><span>文章列表</span><span class="en">content</span></a>
  <a href="/home/about.php"><span>关于我</span><span class="en">About</span></a>
  <a href="/home/liuyan/liuyan.php"><span>留言板</span><span class="en">Gustbook</span></a>
<?php

if(!isset($_SESSION['user'])){
    echo '<a href="/home/denglu/login.php"><span>登录</span><span class="en">register</span></a>
       <a href="/home/denglu/zhuce.php"><span>注册</span><span class="en">register</span></a>
       </nav>';
}else{
	
	echo '<a><span>欢迎'.$_SESSION['user'].'</span><span class="en">register</span></a>
       <a href="/home/denglu/zhuxiao.php"><span>注销</span><span class="en">register</span></a>
       </nav>';
}
?>
</header>